package org.artifact.all;

import cn.hutool.core.util.CharsetUtil;
import org.artifact.core.context.bytebuf.IByteBuff;
import org.artifact.core.context.bytebuf.IByteBuffFactory;
import org.artifact.core.context.bytebuf.NettyByteBuffFactory;

import cn.hutool.core.util.ArrayUtil;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
//    	IByteBuffFactory factory = new NettyByteBuffFactory();
//    	IByteBuff byteBuff = factory.allocate();
//    	byteBuff.writeByte((byte) 1);

        int _value = Float.floatToIntBits(50.4f);

        byte[] bytes = "123".getBytes(CharsetUtil.CHARSET_UTF_8);
        System.out.println(bytes.length);
    	System.out.println(Arrays.toString(bytes));
    }
}
